/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BO;

import DAO.LabDAO;
import java.util.Date;
import java.util.List;
import pojo.Lab;

/**
 *
 * @author phong
 */
public class LabBO {
    //<editor-fold defaultstate="collapsed" desc="1. Lấy danh sách các Lab">

    public static List<Lab> getLabs() {
        return LabDAO.getLabs();
    }
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="2. Lấy thông tin Lab thông qua id">
    public static Lab getLabByID(String id) {
        return LabDAO.getLabByID(id);
    }
    //</editor-fold>

    //<editor-fold defaultstate="collapsed" desc="3. Lấy danh sách các Lab free tai 1 thoi diem">
    public static List<Lab> getFreeLabByTime(Date useDate, String timeTableID) {
        return LabDAO.getFreeLabByTime(useDate, timeTableID);
    }
    //</editor-fold>
}
